﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:LiveWriterBackupWPF="clr-namespace:LiveWriterBackupWPF"	
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="LiveWriterBackupWPF.canAboutControl"
	x:Name="UserControl"
	d:DesignWidth="449" d:DesignHeight="272" xmlns:ThemedControlsLibrary="clr-namespace:ThemedControlsLibrary;assembly=ThemedControlsLibrary">

	<UserControl.Resources>
		<ControlTemplate x:Key="GlassButton" TargetType="{x:Type Button}">
			<ControlTemplate.Resources>
				<Storyboard x:Key="Timeline1">
					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
						<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1"/>
					</DoubleAnimationUsingKeyFrames>
				</Storyboard>
				<Storyboard x:Key="Timeline2">
					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
						<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
					</DoubleAnimationUsingKeyFrames>
				</Storyboard>
			</ControlTemplate.Resources>
			<Border BorderBrush="#FFFFFFFF" BorderThickness="1,1,1,1" CornerRadius="4,4,4,4">
				<Border x:Name="border" Background="#7F000000" BorderBrush="#FF000000" BorderThickness="1,1,1,1" CornerRadius="4,4,4,4">
					<Grid>
						<Grid.RowDefinitions>
							<RowDefinition Height="0.507*"/>
							<RowDefinition Height="0.493*"/>
						</Grid.RowDefinitions>
						<Border Opacity="0" HorizontalAlignment="Stretch" x:Name="glow" Width="Auto" Grid.RowSpan="2" CornerRadius="4,4,4,4">
							<Border.Background>
								<RadialGradientBrush>
									<RadialGradientBrush.RelativeTransform>
										<TransformGroup>
											<ScaleTransform ScaleX="1.702" ScaleY="2.243"/>
											<SkewTransform AngleX="0" AngleY="0"/>
											<RotateTransform Angle="0"/>
											<TranslateTransform X="-0.368" Y="-0.152"/>
										</TransformGroup>
									</RadialGradientBrush.RelativeTransform>
									<GradientStop Color="#B28DBDFF" Offset="0"/>
									<GradientStop Color="#008DBDFF" Offset="1"/>
								</RadialGradientBrush>
							</Border.Background>
						</Border>
						<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Width="Auto" Grid.RowSpan="2"/>
						<Border HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="shine" Width="Auto" CornerRadius="4,4,0,0">
							<Border.Background>
								<LinearGradientBrush EndPoint="0.494,0.889" StartPoint="0.494,0.028">
									<GradientStop Color="#99FFFFFF" Offset="0"/>
									<GradientStop Color="#33FFFFFF" Offset="1"/>
								</LinearGradientBrush>
							</Border.Background>
						</Border>
					</Grid>
				</Border>
			</Border>
			<ControlTemplate.Triggers>
				<Trigger Property="IsPressed" Value="True">
					<Setter Property="Opacity" TargetName="shine" Value="0.4"/>
					<Setter Property="Background" TargetName="border" Value="#CC000000"/>
					<Setter Property="Visibility" TargetName="glow" Value="Hidden"/>
				</Trigger>
				<Trigger Property="IsMouseOver" Value="True">
					<Trigger.EnterActions>
						<BeginStoryboard Storyboard="{StaticResource Timeline1}"/>
					</Trigger.EnterActions>
					<Trigger.ExitActions>
						<BeginStoryboard x:Name="Timeline2_BeginStoryboard" Storyboard="{StaticResource Timeline2}"/>
					</Trigger.ExitActions>
				</Trigger>
			</ControlTemplate.Triggers>
		</ControlTemplate>		
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot">
		<Canvas x:Name="canAbout" Background="#FF89AFEB" Opacity="1" RenderTransformOrigin="0.5,0.5" Visibility="Visible">
			<Canvas.RenderTransform>
				<TransformGroup>
					<ScaleTransform ScaleX="1" ScaleY="1"/>
					<SkewTransform AngleX="0" AngleY="0"/>
					<RotateTransform Angle="0"/>
					<TranslateTransform X="0" Y="0"/>
				</TransformGroup>
			</Canvas.RenderTransform>
			<Button Content="OK" Foreground="#FFFFFFFF" Template="{DynamicResource GlassButton}" x:Name="btnCloseAbout" ToolTip="Close the about window" Width="92" Height="27" Canvas.Top="238" Canvas.Left="349" Opacity="1" RenderTransformOrigin="0.5,0.5" Click="btnCloseAbout_Click">
				<Button.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1" ScaleY="1"/>
						<SkewTransform AngleX="0" AngleY="0"/>
						<RotateTransform Angle="0"/>
						<TranslateTransform X="0" Y="0"/>
					</TransformGroup>
				</Button.RenderTransform>
			</Button>
			<Image Width="92" Height="26" Source="donate.gif" Stretch="Fill" Canvas.Top="160" Canvas.Left="349" x:Name="imgDonate" MouseUp="imgDonate_MouseUp" Cursor="Hand" />
			<TextBlock d:LayoutOverrides="GridBox" Width="317.127" Height="112" Text="Version" TextWrapping="Wrap" IsEnabled="True" x:Name="txtbVersionDetails" Canvas.Left="130.873"/>
			<TextBlock Width="202.127" Height="39" Canvas.Left="130.873" Canvas.Top="158" Text="Please donate if you like the tool and wish to see it improving." TextWrapping="Wrap" x:Name="txtbDonate"/>
			<ThemedControlsLibrary:LinkLabel x:Name="linklabelBlogLink" Content="Go to Scott's blog" Click="linklabelBlogLink_Click" Canvas.Top="128.04" Canvas.Left="125" Width="105.21"/>
			<ThemedControlsLibrary:LinkLabel x:Name="linklabelGiveFeedback" Content="Give feedback" Click="linklabelGiveFeedback_Click" d:LayoutOverrides="Width, Height" Canvas.Top="128.04" Canvas.Left="233.21"/>
			<ThemedControlsLibrary:LinkLabel Content="Show log file" Canvas.Top="238" Canvas.Left="254.71" x:Name="linklabelShowLogFile" Click="linklabelShowLogFile_Click" />
			<Image Width="115.745" Height="272" Source="writer.JPG" Canvas.Left="2.128" x:Name="imgWriterImage"/>
			<ThemedControlsLibrary:LinkLabel Content="Support" Canvas.Left="321.703" Canvas.Top="128.04" x:Name="linklabelSupport" Click="linklabelSupport_Click" />
		</Canvas>
	</Grid>
</UserControl>